package com.woniu.finance.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 应收押金对象 tb_apart_deposit_receivable
 * 
 * @author yy
 * @date 2023-04-04
 */
@ApiModel(value = "ApartDepositReceivable", description = "应收押金")
public class ApartDepositReceivable implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @ApiModelProperty("主键")
    private Long id;

    /** 订单id */
    @Excel(name = "订单id")
    @ApiModelProperty("订单id")
    private Long bookingId;

    /** 押金 */
    @Excel(name = "押金")
    @ApiModelProperty("押金")
    private BigDecimal deposit;

    /** 记录产生时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录产生时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty("记录产生时间")
    private Date depositTime;

    /** 押金是否退还 0-否 1-是 */
    @Excel(name = "押金是否退还 0-否 1-是")
    @ApiModelProperty("押金是否退还 0-否 1-是")
    private Integer depositReturnBack;

    /** 押金退还时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "押金退还时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty("押金退还时间")
    private Date returnTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setBookingId(Long bookingId) 
    {
        this.bookingId = bookingId;
    }

    public Long getBookingId() 
    {
        return bookingId;
    }
    public void setDeposit(BigDecimal deposit) 
    {
        this.deposit = deposit;
    }

    public BigDecimal getDeposit() 
    {
        return deposit;
    }
    public void setDepositTime(Date depositTime) 
    {
        this.depositTime = depositTime;
    }

    public Date getDepositTime() 
    {
        return depositTime;
    }
    public void setDepositReturnBack(Integer depositReturnBack) 
    {
        this.depositReturnBack = depositReturnBack;
    }

    public Integer getDepositReturnBack() 
    {
        return depositReturnBack;
    }
    public void setReturnTime(Date returnTime) 
    {
        this.returnTime = returnTime;
    }

    public Date getReturnTime() 
    {
        return returnTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("bookingId", getBookingId())
            .append("deposit", getDeposit())
            .append("depositTime", getDepositTime())
            .append("depositReturnBack", getDepositReturnBack())
            .append("returnTime", getReturnTime())
            .toString();
    }
}
